package com.neusoft.neu24g3.myioc.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.function.DoublePredicate;

/**
 * Dept 部门
 *
 * @author Administrator
 * @version 2024/05/23 15:26
 **/
@Data
public class Dept {



    private static  Dept DEPT = null;

    public  static  Dept buildDept(){
        System.out.println("Dept.buildDept");
        if (DEPT ==null){
            DEPT = new Dept();
            System.out.println("Dept.buildDept 1234");
        }
        return  DEPT;
    }
    public  Dept(int deptno ){
        System.out.println("deptno = " + deptno);
         this.deptno = deptno;
    }
    public  Dept( String  dname){
        System.out.println("dname = " + dname);
        this.dname = dname;
    }

    public  Dept(int deptno , String  dname ){
        System.out.println("deptno = " + deptno + ", dname = " + dname);
        this.deptno = deptno;
        this.dname = dname;
    }

    public  Dept( String  dname,int deptno  ){
        System.out.println("dname = " + dname + ", deptno = " + deptno);
        this.deptno = deptno;
        this.dname = dname;
    }



    public  Dept(){
        System.out.println("Dept.Dept 1234");
    }
    private Integer deptno = 10;
    private String  dname;
    private String loc;
    private Date  createdate;
    private Boolean b ;
}